<?php
session_start();
if( !$_SESSION["trv3_07"]){
	header("location:../login.php");
	exit;
}
require "../resources/v1.php";
if( !get_magic_quotes_gpc()){
	$Tip   = addslashes( trim( $_POST['HD09']));
	$Autos = addslashes( trim( $_POST['HD12']));
}else{
	$Tip   = trim( $_POST['HD09']);
	$Autos = trim( $_POST['HD12']);
}
$conexion = server_reconnect();
$query = "delete from `block` where `acta`=".$Autos." and `tip`=".$Tip;
$result = mysql_query( $query, $conexion);
server_disconnect( $conexion );
switch( $_SESSION["trv3_30"]){
	case 1:
		header("location:../search/index.php");
		break;
	case 0:
		header("location:main.php");
		break;
	case 2:
		header("location:acta.php");
		break;
}
?>